package com.future.dao;

import com.future.common.base.BaseDao;
import com.future.model.SysUser;
import com.future.requestbean.LoginBean;

import cn.hutool.core.bean.BeanUtil;

public class SysUserDao extends BaseDao<SysUser>{
	public SysUser findUserByUsername(String username) {
		return findFirst(username);
	}

	public SysUser findUser(LoginBean loginBean) {
		return findFirst(BeanUtil.beanToMap(loginBean));
	}
}
